Skip to content

Conversation

rpiaggio
Copy link
Contributor

Recursive picklers must be built in 2 steps.

@mergify mergify bot added the explore label Oct 22, 2025
.addConcreteType[EphemerisTracking]
// Recursive class hierarchy must be built in two steps:
// https://github.com/suzaku-io/boopickle/blob/master/doc/ClassHierarchies.md#recursive-composite-types
given trackingPickler: CompositePickler[Tracking] = compositePickler[Tracking]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks odd, don't you get an unused pure expression warning something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYM?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the next line adding the concrete types to trackigPickler

case CompositeTracking(nel) => Coordinates.centerOf(nel.map(_.baseCoordinates))
case _ => sys.error("Non sidereals are not supported")

extension [F[_]: MonadThrow: Logger, A](f: F[A])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice I bet we can use these beyond explore

@bundlemon
Copy link

bundlemon bot commented Oct 22, 2025

BundleMon (Explore)

Files added (1)
Status Path Size Limits
agsworker-(hash).js
+83B -
Files updated (2)
Status Path Size Limits
index-(hash).js
2.38MB (+1.26KB +0.05%) -
exploreworkers-(hash).js
583.68KB (-151B -0.03%) -
Unchanged files (5)
Status Path Size Limits
index-(hash).css
67.47KB -
workbox-window.prod.es5-(hash).js
2.05KB -
plotworker-(hash).js
85B -
catalogworker-(hash).js
83B -
itcworker-(hash).js
80B -

Total files change +1.19KB +0.04%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link
Contributor

@toddburnside toddburnside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rpiaggio and others added 2 commits October 22, 2025 22:43
@rpiaggio rpiaggio enabled auto-merge October 23, 2025 02:37
@mergify mergify bot added the navigate label Oct 23, 2025
@rpiaggio rpiaggio merged commit 7f523f4 into main Oct 23, 2025
20 checks passed
@rpiaggio rpiaggio deleted the fix-pickle branch October 23, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants